package com.budwk.app.sqfw.models;

import com.budwk.starter.common.openapi.annotation.ApiModel;
import com.budwk.starter.common.openapi.annotation.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.nutz.dao.entity.annotation.*;
import org.nutz.dao.interceptor.annotation.PrevInsert;

import java.io.Serializable;
import java.util.Date;

/**
 * @title: Sqfw_form_summary_pdf
 * @Author Tan
 * @Date: 2023/6/1 17:20
 * @Version 1.0
 */

@Data
@Accessors(chain = true)
@Table("shequ.sqfw_sms_msg")
@Comment("短信发送记录表")
@ApiModel(description = "短信发送记录表")
public class Sqfw_Sms_Msg implements Serializable {

    private static final long serialVersionUID = 1L;
    @Column
    @Name
    @Comment("编号")
    @ApiModelProperty(description = "ID")
    @ColDefine(type = ColType.VARCHAR, width = 32)
    @PrevInsert(uu32 = true)
    private String id;

    @Column("name")
    @Comment("场所名称")
    @ApiModelProperty(description = "场所名称")
    @ColDefine(type = ColType.VARCHAR, width = 120)
    private String name;

    @Column("type")
    @Comment("短信类型")
    @ApiModelProperty(description = "短信类型")
    @ColDefine(type = ColType.VARCHAR, width = 120)
    private String type;

    @Column("status")
    @Comment("状态")
    @ApiModelProperty(description = "状态（成功/失败）")
    @ColDefine(type = ColType.VARCHAR, width = 8)
    private String status;

    @Column("address")
    @Comment("场所地址")
    @ApiModelProperty(description = "场所地址")
    @ColDefine(type = ColType.VARCHAR, width = 1024)
    private String address;

    @Column("create_date")
    @Comment("创建时间")
    @ApiModelProperty(description = "创建时间")
    @ColDefine(type = ColType.TIMESTAMP, width = 120)
    private Date createDate;

    @Column("user_name")
    @Comment("负责人")
    @ApiModelProperty(description = "负责人")
    @ColDefine(type = ColType.VARCHAR, width = 120)
    private String userName;

    @Column("phone")
    @Comment("电话")
    @ApiModelProperty(description = "电话")
    @ColDefine(type = ColType.VARCHAR, width = 120)
    private String phone;

    @Column("msg")
    @Comment("信息")
    @ApiModelProperty(description = "信息")
    @ColDefine(type = ColType.VARCHAR, width = 1024)
    private String msg;

    @Column("summary_id")
    @Comment("巡查id")
    @ApiModelProperty(description = "巡查id")
    @ColDefine(type = ColType.VARCHAR, width = 64)
    private String summaryId;
}
